package com.yvon.maple.service.base.vo;

import com.yvon.maple.pojo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author : Yvon
 * @since : 2021-08-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("文件信息请求参数")
public class FileInfoVO extends BaseVO implements Serializable {

    /**
     * 文件位置
     */
    @ApiModelProperty(name = "fileSite", value = "文件位置", required = true)
    @NotEmpty(message = "文件位置不能为空!")
    private String fileSite;

    /**
     * 文件名
     */
    @ApiModelProperty(name = "fileName", value = "文件名", required = true)
    @NotEmpty(message = "文件名不能为空!")
    private String fileName;

    /**
     * 原文件名
     */
    @ApiModelProperty(name = "fileOriName", value = "原文件名")
    private String fileOriName;

    /**
     * 文件大小
     */
    @ApiModelProperty(name = "fileSize", value = "文件大小", required = true)
    @NotNull(message = "文件大小不能为空!")
    private long fileSize;

    /**
     * 文件类型
     */
    @ApiModelProperty(name = "contentType", value = "文件类型")
    private String contentType;

    /**
     * 关联编号
     */
    @ApiModelProperty(name = "relateId", value = "关联编号", required = true)
    @NotEmpty(message = "关联编号不能为空!")
    private String relateId;

}
